<template>
  <div>
    <el-input v-model="search" @input="change"></el-input>
  </div>
</template>
<script>
import _ from 'lodash'
export default {
  data() {
    return {
      search: ''
    }
  },
  methods: {
    change: _.throttle(function() {
      this.debounce()
    }, 1000),
    debounce() {
      console.log(this.search)
    }
  }
}
</script>
